package mugen.ro;

import java.util.EnumMap;
import java.util.Map;

public class CharStats {
	public CharStats(){
		
		this.minimalStats.put(Stat.STR,1);
		this.minimalStats.put(Stat.INT,1);		
		this.minimalStats.put(Stat.DEX,71);
		this.minimalStats.put(Stat.LUK,1);
		
		this.statBonuses.put(Stat.STR, 0);
		this.statBonuses.put(Stat.INT, 0);
		this.statBonuses.put(Stat.DEX, 0);
		this.statBonuses.put(Stat.LUK, 0);
                
                this.skipStats.put(Stat.STR, false);
		this.skipStats.put(Stat.INT, false);
		this.skipStats.put(Stat.DEX, true);
		this.skipStats.put(Stat.LUK, false);
	}
	public enum Stat {DEX,LUK,INT,STR};

		public int weaponLvl;
		public int weaponUpgrade;
		public int weaponAtk;

	
	public int level;
	public boolean ppchange = true;
        
	public int baseVit;
	public int baseAgi;
	public double cardDmgModifier;
	public int quipAtk;
	
	public double spModifier;
	public double spAdded;
	
		
	public Map<Stat,Integer> minimalStats = new EnumMap<Stat, Integer>(Stat.class);
	public Map<Stat,Integer> statBonuses = new EnumMap<Stat, Integer>(Stat.class);
        public Map<Stat,Boolean> skipStats = new EnumMap<Stat, Boolean>(Stat.class);
	
	public int remainingStats(){
		int[] statCosts = Formulas.getStatCosts();
		int statsForLvl = Formulas.getStatsForLvl(130);
		int remainingStats = statsForLvl - (statCosts[baseVit]+statCosts[baseAgi]);
		
		return (remainingStats < 0)?0:remainingStats;//statsForLvl - (statCosts[baseVit]+statCosts[baseAgi]);
		
	}
	
	

	
	
	
	
}
